package com.lucy.nepu.module.htopic.event;

import com.lucy.nepu.module.htopic.entity.HorTopic;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

import java.time.Clock;

@Getter
public class HorTopicCreatedEvent extends ApplicationEvent {
    HorTopic topic;
    public HorTopicCreatedEvent(Object source, HorTopic topic) {
        super(source);
        this.topic = topic;
    }

    public HorTopicCreatedEvent(Object source, Clock clock) {
        super(source, clock);
    }

}